package main.java.Fzy.designMode.single;


/**
* @author LazyCat
* @date  2022/10/3
* @param
* @return
 * 静态内部类
*/
public class Single3 {

//    private Single3(){}
//
//    private static class StaticSingle{
//        private static final Single3 single3 = new Single3();
//    }
//
//    public static final Single3 getInstance(){
//        return StaticSingle.single3;
//    }

    private static class StaticSingle{
        private static final Single3 single3 = new Single3();
    }

    private Single3(){

    }

    public static Single3 getInstance(){
        return StaticSingle.single3;
    }
}
